package com.chendx.utils;

import com.chendx.model.user.pojos.ApUser;

/**
 * Created by chendx on 2022/3/8.
 */
public class AppThreadLocalUtils {
    private final static ThreadLocal<ApUser> LOCAL = new ThreadLocal<>();

    public static void set(ApUser apUser){
        LOCAL.set(apUser);
    }

    public static ApUser get(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }
}
